<div id="steps" class="form complex">
    <?php
    echo form_open('peserta/peserta_fix/update_plot_kamar');
    ?>
    <form>
        <fieldset class="step">
            <?
            //----Start Print Cow------
            $no = 1;
            $status = 1;
            $counter_nokamar = 1;
            foreach ($plot_kamar_peserta->result() as $row) {
                if ($no > 2) {
                    $no = 1;
                }
                
                $nama_1 = $row->PESERTA_1;
                if($row->PESERTA_1 == '0'){
                    $nama_1 = "";
                }
                
                $nama_2 = $row->PESERTA_2;
                if($row->PESERTA_2 == '0'){
                    $nama_2 = "";
                }
                
                echo'
                        <p>
                        <label>Peserta ' . $no . '</label>
                        <input id="peserta_1" name="peserta' . $status . '" type="text" value="' . $nama_1. '" tabindex="1" />
			</p>
			
                        ';
                $status++;
                $no++;
                echo'
                        <p>
                        <label>Peserta ' . $no . '</label>
                        <input id="peserta_1" name="peserta' . $status . '" type="text" value="' . $nama_2. '" tabindex="1" />
			</p>
                        ';
                if ($no == 2) {
                    echo'
                        <p>
                        <label>No Kamar</label>
                        <input id="kamar" name="no_kamar' . $counter_nokamar . '" type="text" value="'.$row->NO_KAMAR.'" size="20" tabindex="2" />
                        </p>
						----------------------------------------------------------
                        ';
                    $counter_nokamar++;
                }
                $no++;
                $status++;
            }
            $status = $status-1;
            echo'
                        <input type="hidden" name="status" value="' . $status . '">
                ';
            ?>
            <p class="submit">
                <button id="registerButton" type="submit">Simpan</button>&nbsp;
                <button id="registerButton" type="reset">Reset</button>&nbsp;
            </p >
            
            <p class="submit">
                <button id="registerButton" TYPE="BUTTON" VALUE="Regenerate" ONCLICK="window.location.href='<?=base_url()?>index.php/peserta/peserta_fix/regenerate_plot_kamar/<?=$this->session->userdata('id_batch')?>'">Generate Ulang</button>&nbsp;
                <button id="registerButton" TYPE="BUTTON" VALUE="Back" ONCLICK="window.location.href='<?=base_url()?>index.php/peserta/peserta_fix/daftar/<?=$this->session->userdata('id_batch')?>'">Kembali</button>
            </p >
        </fieldset>
        <?php
        echo form_close();
        ?>
    </form> 
</div>